import java.awt.Color;
import java.awt.Component;

import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;



class MiRender extends DefaultTableCellRenderer { 

	private static final long serialVersionUID = 1L;

	public Component getTableCellRendererComponent (JTable table, Object value, boolean selected, boolean focused, int row, int column ) 
	{ 
		
	 {
		 if(String.valueOf(table.getValueAt(row,12)).equals("1")){
			 
			 Color colorNaranja=new Color(0xD4ED91);
			 setBackground(colorNaranja);
		 } else setBackground(null); 
		 
		 
		 /*
		  * 	 if(String.valueOf(table.getValueAt(row,12)).equals("1")){
			 		setBackground(Color.red);
		 		}else if(String.valueOf(table.getValueAt(row,12)).equals("0")){
		 			setBackground(Color.green);

	     				//aca indico que me pinte de color verde todas 
		 				//las filas en la cual la ultima columna tiene valor 0. 
	     		}
		 		else setBackground(null); 
		  * 
		  */
		 
	 } 
	 	 super.getTableCellRendererComponent(table, value, selected, focused, row, column);
	 	 return this; 
	} 
	
}